/**
 * Apr 14, 2010
 */
package org.tomale.id.power.customers.inquiry.handlers;

import org.eclipse.core.commands.AbstractHandler;
import org.eclipse.core.commands.ExecutionEvent;
import org.eclipse.core.commands.ExecutionException;
import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Event;
import org.eclipse.swt.widgets.MenuItem;
import org.eclipse.ui.IFileEditorMapping;
import org.eclipse.ui.handlers.HandlerUtil;
import org.tomale.id.power.customers.inquiry.Activator;
import org.tomale.id.power.customers.inquiry.ui.AdvancedSearchDialog;
import org.tomale.id.power.customers.inquiry.ui.CustomerBrowser;

/**
 * @author ferd
 *
 */
public class AdvancedSearchHandler extends AbstractHandler {

	/* (non-Javadoc)
	 * @see org.eclipse.core.commands.IHandler#execute(org.eclipse.core.commands.ExecutionEvent)
	 */
	@Override
	public Object execute(ExecutionEvent event) throws ExecutionException {
		AdvancedSearchDialog dialog = new AdvancedSearchDialog(Activator.getDefault().getWorkbench().getActiveWorkbenchWindow().getShell());
		dialog.setBlockOnOpen(true);
		if(dialog.open() == SWT.OK){
			
		}
		return null;
	}

}
